// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-12

package ticket

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/master/ticket/info"
	"server/app/http/logics/master/ticket/list"
	"server/app/http/logics/master/ticket/post"
	"server/app/http/logics/master/ticket/scan"
)

// Controller
// 渔票操作.
//
// @Middleware("authorizer")
// @Middleware("master")
type Controller struct{}

// GetInfo
// 渔票详情.
func (o *Controller) GetInfo(i iris.Context) {
	logics.Do(i, info.New)
}

// GetList
// 渔票列表.
func (o *Controller) GetList(i iris.Context) {
	logics.Do(i, list.New)
}

// GetScan
// 扫码回鱼.
func (o *Controller) GetScan(i iris.Context) {
	logics.Do(i, scan.New)
}

// PostPost
// 保存渔票.
func (o *Controller) PostPost(i iris.Context) {
	logics.Do(i, post.New)
}
